<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 水平合并单元格是colspan，垂直合并单元格是rowspan -->
     <p>水平合并单元格6和7，垂直合并单元格11和16</p>
     <p>水平合并：保留左边，删除右边</p>
     <p>垂直合并：保留上边，删除下边</p>
    <table border="1" width="500" height="300">
        <tr>
            <td>单元格1</td>
            <td>单元格2</td>
            <td>单元格3</td>
            <td>单元格4</td>
            <td rowspan="3">单元格5 单元格10 单元格15</td>

        </tr>
        <tr>
            <td colspan="2">单元格6 单元格7</td>
            <td>单元格8</td>
            <td>单元格9</td>

        </tr>
        <tr>
            <td rowspan="2">单元格11 单元格16</td>
            <td>单元格12</td>
            <td>单元格13</td>
            <td>单元格14</td>
       
        </tr>
        <tr>
            <td>单元格17</td>
            <td>单元格18</td>
            <td colspan="2" rowspan ="2">单元格19 单元格20 单元格24</td>

        </tr>
        <tr>
            <td>单元格21</td>
            <td>单元格22</td>
            <td>单元格23</td>
            <td>单元格25</td>
            
        </tr>
    </table>
</body>
</html>
